package cn.adelyn.base.rbac.dao.mapper;

import cn.adelyn.base.rbac.pojo.model.MenuModel;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MenuMapper extends BaseMapper<MenuModel> {

    @Select("select permission from menu ${ew.customSqlSegment}")
    String getUriPermission(@Param(Constants.WRAPPER) Wrapper wrapper);
}
